<%@page import="com.tk.entity.Statistics"%>
<%@page import="com.tk.service.impl.StatisticsServiceImpl"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
	<title>大丈夫生于乱世，当带三尺剑立不世之功</title>
	<link rel="stylesheet" type="text/css" href="css/index.css" />
	<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
	<script type="text/javascript" src="js/getBodyWidAndHei.js" ></script>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta charset="utf-8" />
  </head>
  
  <body>
  		<div class="myInput">
			<!--index内放从数据库中传入的文本的东西-->
			<p id="myInputP">
				<%
			  		StatisticsServiceImpl sSer = new StatisticsServiceImpl();
			  		Statistics sta = sSer.getStatistics();
					out.println("话说天下大事，分久必合，合久必分 <br>");
			  	 	out.println("登录总次数为" + sta.getCliCnt() + "<br>");
			  	 	out.println("天下共有" + sta.getTotCnt() + "位英雄<br>");
			  	 	out.println("魏国势力有" + sta.getWeiCnt() + "位英雄<br>");
			  	 	out.println("蜀国势力有" + sta.getShuCnt() + "位英雄<br>");
			  	 	out.println("吴国势力有" + sta.getWuCnt() + "位英雄<br>");
			  	 %>
			</p>
		</div>
  		<div class="cloud" onclick="window.location.href='login/login.jsp?team=xian'"></div>
		<!--魏国-->
		<div class="wei">
			<a href="login/login.jsp?team=wei"><img id="caoCao" src="img/index/曹操.jpg"></a>
		</div>
		<!--蜀国-->
		<div class="shu">
			<a href="login/login.jsp?team=shu"><img id="liuBie" src="img/index/刘备.jpg"> </a>
		</div>
		<!--吴国-->
		<div class="wu">
			<a href="login/login.jsp?team=wu"><img id="sunQuan" src="img/index/孙权.jpg"></a>
		</div>
		
  </body>
</html>
